<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 计算两数相加
      function add(x, y) {
        // console.log(x + y); //调试输出
        return x + y;
      }

      const r = add(1, 2); // 3
      console.log(r);

      console.log(add(30, 40));
    </script>
  </body>
</html>
